<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
*************************************
Template Design by Free CSS Templates
http://www.freecsstemplates.org
************************************


-->


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
Spot IFrame Create Spot Form 
<br>
<br>
</head>
<body>
<?php // Change the css classes to suit your needs    

$attributes = array('class' => '', 'id' => '');
echo form_open('http://scawesomespots.com/CI/index.php/spot_controller/create_spot_frame', $attributes); ?>

<p>
        <label for="name">Spot Nick Name: <span class="required">*</span></label>
        <?php echo form_error('name'); ?>
        <br /><input id="name" type="text" name="name" maxlength="35" value="<?php echo set_value('name'); ?>"  />
</p>

<p>
    <label for="directions">Directions <span class="required">*</span></label>
	<?php echo form_error('directions'); ?>
	<br />
							
	<?php echo form_textarea( array( 'name' => 'directions', 'rows' => '5', 'cols' => '75', 'value' => set_value('directions') ) )?>
</p>

<br>
Rating:
<br> <?php echo "1:".form_radio('rating','1', TRUE); ?>
<br> <?php echo " 2:".form_radio('rating','2', TRUE); ?>
<br> <?php echo " 3:".form_radio('rating','3', TRUE); ?>
<br> <?php echo " 4:".form_radio('rating','4', TRUE); ?>
<br> <?php echo " 5:".form_radio('rating','5', TRUE); ?>

<p>
        <label for="description">Description <span class="required">*</span></label>
	<?php echo form_error('description'); ?>
	<br />
							
	<?php echo form_textarea( array( 'name' => 'description', 'rows' => '5', 'cols' => '75', 'value' => set_value('description') ) )?>
</p>

<p>
        <label for="location">Location <span class="required">*</span></label>
        <?php echo form_error('location'); ?>
		
<?php $options = array(
			 ''  => 'Please Select', 'Westside' => 'Westside', 'Eastside' => 'Eastside', 'Downtownish' => 'Downtownish',
			'hw1' => 'Up Hyw 1', 'hw9' => 'Up Hyw 9', 'uc' => 'UC Campus',
			'Other' => 'Other'); ?>
        <br /><?php echo form_dropdown('location', $options, set_value('location'))?>
</p>   
<br>

Img Uploader:


<br>
<br>
Creatd by: (Hidden field, grabs user's id)
<br>
 <?php echo form_submit('submit', 'Create Spot'); ?>
 <?php echo form_close(''); ?>
 


	
</body>
</html>
